package com.kgame5.xtank3d.effect.myemitters {
import kgame5.enginex.enum.Layer3DEnum;
import kgame5.k3d.core.obj3d.node3d.Node3D;

import com.kgame5.xtank3d.effect.MyEmitter;
import com.kgame5.xtank3d.resource.ResourceManagerX;

/**
 * @author kk
 */
public class PoisonGroundEmitter extends MyEmitter{
	public function PoisonGroundEmitter(r:int=32) {

		var md_chip:Node3D=ResourceManagerX.getInstance().getPoisonGround(r);
		//Factory3D.CreateShadow(r*2,"MyBmd_poisonGround");
		
		var scaleSpeed:Number=-0.02;
		md_chip.ti.hardVO.v3d_sv.fill(scaleSpeed,scaleSpeed,scaleSpeed);
		
		md_chip.life=Math.abs(1/scaleSpeed);
			
		//添加到世界
		md_g.addChild(md_chip);
		md_g.layerID = Layer3DEnum.LAYER_GROUNDMARK;
		
	
	}
}
}
